// 引入 common样式
@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial,Helvetica;
    background: #f2f2f2;
}

@basefont:50;
// 搜索
.serch-content {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem / @basefont);
    background-color: #FFC001;
    .ty {
        width: (44rem / @basefont);
        height: (70rem / @basefont);
        margin: (11rem / @basefont) (25rem / @basefont) (7rem / @basefont) (24rem / @basefont);
        // background-color: yellow;
        background: url(../images/classify.png) no-repeat;
        box-sizing:(44rem / @basefont) (70rem / @basefont);
    }
    .serch {
        flex: 1;
        // background-color: aqua;
        input {
            border: 0;
            outline: none;
            width: 90%;
            height: (66rem / @basefont);
            border-radius: (33rem / @basefont);
            background-color: #FFF2CC;
            margin: (12rem / @basefont);
            font-size: (25rem / @basefont);
            padding-left: (55rem / @basefont);
            color: #757575;
        }
    }
    .login {
        width: (75rem / @basefont);
        height: (70rem / @basefont);
        line-height: (70rem / @basefont);
        margin: (10rem / @basefont);
        // background-color: pink;
        font-size: (25rem / @basefont);
        text-align: center;
    }
}

// banner
.banner {
    width: (750rem / @basefont);
    height: (368rem / @basefont);
    img {
        width: 100%;
        height: 100%;
    }
}

// ad
.ad {
    display: flex;
    a {
        flex: 1;
        img {
            width: 100%;
        }
    }
}

// nav

.nav {
    width: 750rem / @basefont;
    a {
       
        float: left;
        width: (150rem / @basefont);
        height: (140rem / @basefont);
        text-align: center;
        img {
            // 行内元素无法左右居中对齐必须要转化为块级元素
            display: block;
            width: (82rem / @basefont);
            height: (82rem / @basefont);
            margin: (10rem / @basefont) auto 0;
        }
        span {
            display: block;
            margin-top: (10rem / @basefont);
            font-size: (25rem / @basefont);
            color: #333333;
        }
    }
}